package com.bank.backend.boot.server.converter;

import com.bank.backend.boot.base.model.dto.AuditDTO;
import com.bank.backend.boot.base.model.entity.Audit;
import com.bank.backend.boot.base.model.vo.AuditVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.mapstruct.Mapper;

/**
 * @author jiaowei
 * @since 2025/4/26 22:38
 */
@Mapper(componentModel = "spring")
public interface AuditConverter {
    AuditConverter INSTANCE = org.mapstruct.factory.Mappers.getMapper(AuditConverter.class);

    AuditVO converter(Audit entity);

    Audit converter(AuditDTO vo);

    Page<AuditVO> converter(Page<Audit> page);
}
